<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SSDP Help: D:/doxy/PublicAPI/ATGeometrySet/XRay3d.h 源文件</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SSDP Help<span id="projectnumber">&#160;2.04.01</span>
   </div>
   <div id="projectbrief">仅供测试</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.3 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',false,false,'search.php','搜索');
});
/* @license-end */
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_52a01df1794e5beec01860bdd05aea48.html">PublicAPI</a></li><li class="navelem"><a class="el" href="../../dir_3ae1ea863de6943fe2c5c18439480f66.html">ATGeometrySet</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">XRay3d.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span>BEGIN_ATEC_NAMESPACE</div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"><a class="line" href="../../d2/d7e/struct_x_ray3d.html">   11</a></span><span class="keyword">struct </span>ATGEOSET_EXPORT <a class="code hl_struct" href="../../d2/d7e/struct_x_ray3d.html">XRay3d</a></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span>{</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span>    <a class="code hl_struct" href="../../d5/d5b/struct_x_point3d.html">XPoint3d</a> origin;</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span>    XVec3d   direction;</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span>    <a class="code hl_struct" href="../../d2/d7e/struct_x_ray3d.html">XRay3d</a>();</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span>    <a class="code hl_struct" href="../../d2/d7e/struct_x_ray3d.html">XRay3d</a>(XPoint3dCR o, XVec3dCR d);</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="../../d2/d7e/struct_x_ray3d.html#ab0fea928ca45c982c6bb0a322e96e2f3">   32</a></span>    <span class="keyword">static</span> <a class="code hl_struct" href="../../d2/d7e/struct_x_ray3d.html">XRay3d</a> <a class="code hl_function" href="../../d2/d7e/struct_x_ray3d.html#ab0fea928ca45c982c6bb0a322e96e2f3">FromOriginAndVector</a>(XPoint3dCR origin, XVec3dCR vector);</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span> </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="../../d2/d7e/struct_x_ray3d.html#ad34dfb86ec471c5edb539f6e73e23838">   45</a></span>    <span class="keyword">static</span> <a class="code hl_struct" href="../../d2/d7e/struct_x_ray3d.html">XRay3d</a> <a class="code hl_function" href="../../d2/d7e/struct_x_ray3d.html#ad34dfb86ec471c5edb539f6e73e23838">FromOriginAndTarget</a>(XPoint2dCR pnt0, XPoint2dCR point1);</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="../../d2/d7e/struct_x_ray3d.html#a69c31bbf95d4932d859c53876564a84d">   58</a></span>    <span class="keyword">static</span> <a class="code hl_struct" href="../../d2/d7e/struct_x_ray3d.html">XRay3d</a> <a class="code hl_function" href="../../d2/d7e/struct_x_ray3d.html#a69c31bbf95d4932d859c53876564a84d">FromOriginAndTarget</a>(XPoint3dCR pnt0, XPoint3dCR point1);</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span> </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="../../d2/d7e/struct_x_ray3d.html#a05d1452cdb322953f732feedf869817b">   71</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/d7e/struct_x_ray3d.html#a05d1452cdb322953f732feedf869817b">InitFromOriginAndVector</a>(XPoint3dCR origin, XVec3dCR vector);</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="../../d2/d7e/struct_x_ray3d.html#a51dfc616df0f94ca51a250bfe2fee1e8">   84</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d2/d7e/struct_x_ray3d.html#a51dfc616df0f94ca51a250bfe2fee1e8">InitFromPlanePlaneIntersection</a>(XPlane3dCR planeA, XPlane3dCR planeB);</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span> </div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="../../d2/d7e/struct_x_ray3d.html#a69a78904870bfb9399aa93c4c0a111ad">  101</a></span>    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d2/d7e/struct_x_ray3d.html#a69a78904870bfb9399aa93c4c0a111ad">ClosestApproachUnboundedRayUnboundedRay</a></div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>    (</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>        <span class="keywordtype">double</span> &amp;fractionA,</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>        <span class="keywordtype">double</span> &amp;fractionB,</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>        XPoint3dR pntA,</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>        XPoint3dR pntB,</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>        XRay3dCR rayA,</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>        XRay3dCR rayB</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>    );</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span> </div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"><a class="line" href="../../d2/d7e/struct_x_ray3d.html#a79835c2159771277110779c98dc28c51">  123</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d2/d7e/struct_x_ray3d.html#a79835c2159771277110779c98dc28c51">Intersect</a></div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>    (</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span>        XPoint3dR       intPoint,</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span>        <span class="keywordtype">double</span>          &amp;intParam,</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>        XPlane3dCR      plane</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>    ) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span> </div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"><a class="line" href="../../d2/d7e/struct_x_ray3d.html#a9dadf1cbe26ddff278925ad68f6bf165">  141</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d2/d7e/struct_x_ray3d.html#a9dadf1cbe26ddff278925ad68f6bf165">ProjectPointUnbounded</a></div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span>    (</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span>        XPoint3dR       closestPoint,</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span>        <span class="keywordtype">double</span>          &amp;closestParam,</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span>        XPoint3dCR      point</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span>    ) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span>};</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span> </div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span>END_ATEC_NAMESPACE</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span> </div>
<div class="ttc" id="astruct_x_point3d_html"><div class="ttname"><a href="../../d5/d5b/struct_x_point3d.html">XPoint3d</a></div><div class="ttdoc">3D空间点类</div><div class="ttdef"><b>Definition:</b> XPoint3d.h:12</div></div>
<div class="ttc" id="astruct_x_ray3d_html"><div class="ttname"><a href="../../d2/d7e/struct_x_ray3d.html">XRay3d</a></div><div class="ttdoc">三维的射线</div><div class="ttdef"><b>Definition:</b> XRay3d.h:12</div></div>
<div class="ttc" id="astruct_x_ray3d_html_a05d1452cdb322953f732feedf869817b"><div class="ttname"><a href="../../d2/d7e/struct_x_ray3d.html#a05d1452cdb322953f732feedf869817b">XRay3d::InitFromOriginAndVector</a></div><div class="ttdeci">void InitFromOriginAndVector(XPoint3dCR origin, XVec3dCR vector)</div><div class="ttdoc">初始化数据</div></div>
<div class="ttc" id="astruct_x_ray3d_html_a51dfc616df0f94ca51a250bfe2fee1e8"><div class="ttname"><a href="../../d2/d7e/struct_x_ray3d.html#a51dfc616df0f94ca51a250bfe2fee1e8">XRay3d::InitFromPlanePlaneIntersection</a></div><div class="ttdeci">bool InitFromPlanePlaneIntersection(XPlane3dCR planeA, XPlane3dCR planeB)</div><div class="ttdoc">初始化数据</div></div>
<div class="ttc" id="astruct_x_ray3d_html_a69a78904870bfb9399aa93c4c0a111ad"><div class="ttname"><a href="../../d2/d7e/struct_x_ray3d.html#a69a78904870bfb9399aa93c4c0a111ad">XRay3d::ClosestApproachUnboundedRayUnboundedRay</a></div><div class="ttdeci">static bool ClosestApproachUnboundedRayUnboundedRay(double &amp;fractionA, double &amp;fractionB, XPoint3dR pntA, XPoint3dR pntB, XRay3dCR rayA, XRay3dCR rayB)</div><div class="ttdoc">两条射线最接近的点</div></div>
<div class="ttc" id="astruct_x_ray3d_html_a69c31bbf95d4932d859c53876564a84d"><div class="ttname"><a href="../../d2/d7e/struct_x_ray3d.html#a69c31bbf95d4932d859c53876564a84d">XRay3d::FromOriginAndTarget</a></div><div class="ttdeci">static XRay3d FromOriginAndTarget(XPoint3dCR pnt0, XPoint3dCR point1)</div><div class="ttdoc">创建函数</div></div>
<div class="ttc" id="astruct_x_ray3d_html_a79835c2159771277110779c98dc28c51"><div class="ttname"><a href="../../d2/d7e/struct_x_ray3d.html#a79835c2159771277110779c98dc28c51">XRay3d::Intersect</a></div><div class="ttdeci">bool Intersect(XPoint3dR intPoint, double &amp;intParam, XPlane3dCR plane) const</div><div class="ttdoc">与平面相交</div></div>
<div class="ttc" id="astruct_x_ray3d_html_a9dadf1cbe26ddff278925ad68f6bf165"><div class="ttname"><a href="../../d2/d7e/struct_x_ray3d.html#a9dadf1cbe26ddff278925ad68f6bf165">XRay3d::ProjectPointUnbounded</a></div><div class="ttdeci">bool ProjectPointUnbounded(XPoint3dR closestPoint, double &amp;closestParam, XPoint3dCR point) const</div><div class="ttdoc">将点投影到射线上（无范围限制）</div></div>
<div class="ttc" id="astruct_x_ray3d_html_ab0fea928ca45c982c6bb0a322e96e2f3"><div class="ttname"><a href="../../d2/d7e/struct_x_ray3d.html#ab0fea928ca45c982c6bb0a322e96e2f3">XRay3d::FromOriginAndVector</a></div><div class="ttdeci">static XRay3d FromOriginAndVector(XPoint3dCR origin, XVec3dCR vector)</div><div class="ttdoc">创建函数</div></div>
<div class="ttc" id="astruct_x_ray3d_html_ad34dfb86ec471c5edb539f6e73e23838"><div class="ttname"><a href="../../d2/d7e/struct_x_ray3d.html#ad34dfb86ec471c5edb539f6e73e23838">XRay3d::FromOriginAndTarget</a></div><div class="ttdeci">static XRay3d FromOriginAndTarget(XPoint2dCR pnt0, XPoint2dCR point1)</div><div class="ttdoc">创建函数</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
